Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for tsconfig generation #12420

Merged
merged 3 commits into from
Dec 9, 2020

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Nov 28, 2020

Q                       A
License MIT
  • updates to Makefile to make sure tsconfigs.json files already in git, are not removed in clean-tsconfig
  • update for scripts/generators/tsconfig.js to also generate tsconfig.json files for eslint and codemods folders

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 28, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 77dfc47:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

Makefile Outdated
Comment on lines 149 to 155
rm -f packages/*/tsconfig.{tsbuildinfo,json}
rm -f codemods/*/tsconfig.{tsbuildinfo,json}
rm -f eslint/*/tsconfig.{tsbuildinfo,json}
# revert files in git
git checkout HEAD -- packages/*/tsconfig.json
git checkout HEAD -- codemods/*/tsconfig.json
git checkout HEAD -- eslint/*/tsconfig.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use git clean, that only removes files if they are ignored:

Suggested change
rm -f packages/*/tsconfig.{tsbuildinfo,json}
rm -f codemods/*/tsconfig.{tsbuildinfo,json}
rm -f eslint/*/tsconfig.{tsbuildinfo,json}
# revert files in git
git checkout HEAD -- packages/*/tsconfig.json
git checkout HEAD -- codemods/*/tsconfig.json
git checkout HEAD -- eslint/*/tsconfig.json
git clean packages/*/tsconfig.json -xfq
git clean codemods/*/tsconfig.json -xfq
git clean eslint/*/tsconfig.json -xfq
rm -f */*/tsconfig.tsbuildinfo

@nicolo-ribaudo nicolo-ribaudo added the Flow -> TS Tracking repository migration from Flow to TS label Dec 4, 2020
@JLHwung JLHwung merged commit 5067edf into babel:main Dec 9, 2020
Nicolò's ideal PR review order list automation moved this from To review to Done Dec 9, 2020
@zxbodya zxbodya deleted the updates-for-tsconfig-generation branch December 9, 2020 15:32
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Flow -> TS Tracking repository migration from Flow to TS outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Development

Successfully merging this pull request may close these issues.

None yet

3 participants